﻿using PHMEE.Constants;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PHMEE.EnergyEfficiency
{
    /// <summary>
    /// 获取流量计数据仓储
    /// </summary>
    public interface IMassFlowMeterRepository
    {
        /// <summary>
        /// 获取每个流量计
        /// </summary>
        /// <param name="vesselId"></param>
        /// <returns></returns>
        Task<List<MassFlowmeter>> GetAllFlowmeterAsync(Guid vesselId);
        /// <summary>
        ///  获取指定日期范围内的所有流量计数据
        /// </summary>
        /// <param name="vesselId"></param>
        /// <param name="startDateTime"></param>
        /// <param name="endDateTime"></param>
        /// <returns></returns>
        Task<Dictionary<string, List<MassFlowmeter>>> GetFlowmeterByDateAsync(Guid vesselId, DateTime startDateTime, DateTime endDateTime);
        /// <summary>
        /// 根据不同模式，获取设备流量计数据
        /// </summary>
        /// <param name="vesselId"></param>
        /// <returns></returns>
        Task<List<DeviceFuelConsumption>> GetDeviceFuelConsumptionAsync(Guid vesselId);
    }
}
